package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 出库单DTO
 * </p>
 *
 * @author LEO
 * @since 2020-08-07
 */
@Data
@ApiModel(value="OutboundVO对象", description="出库单")
public class OutboundVO implements Serializable {


    @ApiModelProperty(value = "出库单号")
    private String code;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "来源单号")
    private String sourceCode;

    @ApiModelProperty(value = "发货单号")
    private String deliveryCode;

    @ApiModelProperty(value = "所属机构Code")
    private String groupCode;

    @ApiModelProperty(value = "客户")
    private String customerCode;

    @ApiModelProperty(value = "客户")
    private String customerName;

    @ApiModelProperty(value = "单据类型")
    private String type;

    @ApiModelProperty(value = "单据类型名称")
    private String typeName;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "修改人")
    private String modifiedBy;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;

    @ApiModelProperty(value = "创建人名称")
    private String createdName;

    @ApiModelProperty(value = "修改人名称")
    private String modifiedName;

    @ApiModelProperty(value = "修改时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "出库单明细列表")
    private List<OutboundItemVO> outboundItemVOList;

    @ApiModelProperty(value = "出库单明细关联复核确认单列表")
    @Valid
    private List<OutboundItemWithRegisterVO> outboundItemWithRegisterVOList;

    @ApiModelProperty(value = "下发状态:0未下发，1已下发；")
    private Integer issue;

    @ApiModelProperty(value = "计划总数量")
    private BigDecimal planQuantity;

    @ApiModelProperty(value = "复核总数量")
    private BigDecimal recheckQuantity;

    @ApiModelProperty(value = "退减总数量")
    private BigDecimal returnQuantity;

    @ApiModelProperty(value = "发货总数量")
    private BigDecimal outQuantity;

    @ApiModelProperty(value = "拣货单号")
    private String pickingCode;

    @ApiModelProperty(value = "是否oms下发的；0：否；1：是；用于后期判断反填oms数据")
    private Integer isOmsOrder;

    @ApiModelProperty(value = "所属机构名称")
    private String groupName;

    @ApiModelProperty(value = "波次单号")
    private String wavePickingCode;

    @ApiModelProperty(value = "物流公司编码")
    private String logisticsCode;

    @ApiModelProperty(value = "物流公司名称")
    private String logisticsName;

    @ApiModelProperty(value = "商品种类数量")
    private BigDecimal goodsSortQuantity;

    @ApiModelProperty(value = "波次临时标识")
    private String temporaryCode;

    @ApiModelProperty(value = "订单标识 1-单品单件 2-单品多件 3-多品 4-爆品 5-按单")
    private String orderTag;

    @ApiModelProperty(value = "任务数量")
    private BigDecimal taskNum;

    @ApiModelProperty(value = "任务code")
    private String taskCode;

    @ApiModelProperty(value = "承运商编码")
    private String carrierCode;

    @ApiModelProperty(value = "承运商名称")
    private String carrierName;

    @ApiModelProperty(value = "订单总数")
    private Integer deliveryCount;

    @ApiModelProperty(value = "已复核订单数")
    private Integer recheckDeliveryCount;

    @ApiModelProperty(value = "是否预打包拣货单:0否1是")
    private Integer prepackaged;

    @ApiModelProperty(value = "库位编码")
    private String locationSerial;

    @ApiModelProperty(value = "待检包裹数")
    private Integer planPackQuantity;

    @ApiModelProperty(value = "订单排序")
    private Integer orderNum;


    /**
     * 收件人姓名
     */
    @ApiModelProperty(value = "收件人姓名")
    private String receiverName;

    /**
     * 收件人移动电话
     */
    @ApiModelProperty(value = "客户电话")
    private String receiverMobile;

    /**
     * 收件人省份
     */
    @ApiModelProperty(value = "客户省份")
    private String receiverProvince;

    /**
     * 收件人城市
     */
    @ApiModelProperty(value = "客户城市")
    private String receiverCity;

    /**
     * 收件人区县
     */
    @ApiModelProperty(value = "客户区县")
    private String receiverDistrict;

    /**
     * 收件人详细地址
     */
    @ApiModelProperty(value = "客户详细地址")
    private String receiverDetailAddress;


    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "预打包单号")
    private String prepackagedCode;

    @ApiModelProperty(value = "任务状态，1-未执行，2-执行中，3-执行完成")
    private String taskStatus;

    @ApiModelProperty(value = "复核任务状态，1-未执行，2-执行中，3-执行完成")
    private String recheckTaskStatus;

}
